package com.wlz.ota.packageOriginal;

import com.wlz.ota.entity.PackageControllerVo;

/**
 * @author wlz
 * @date 2023-01-30  5:10 下午
 */
public class parsePackageNameTest {

    public static void main(String[] args) {

//        String softName = "ADCES0036702S001001C001001.zip";
        String softName = "ICMB00034439S020015B60V.zip";
        PackageControllerVo packageControllerVo = new PackageControllerVo();
        packageControllerVo.setSuccess(true);
        packageControllerVo.setPackageName(softName.substring(0, softName.lastIndexOf(".")));
        packageControllerVo.setPackageFullName(softName);
        packageControllerVo.setPackageSuffix(softName.substring(softName.lastIndexOf(".") + 1));
        packageControllerVo.setCarTypeId(null);

        OriginalPackageTest.parsePackageName(packageControllerVo);
        System.out.println(packageControllerVo);

    }
}
